#!/bin/sh

set -e

. ./conf.sh
. ./util.sh

umask 022

#===============================================================================
#Our xalga is based on xorg dev tree, then we must generate the GNU package.
#For this task, we need the following packages.
#(It may be consistent to remove the packages needed for GNU package generation
#afterwards)
. "$builders_dir_root/autoconf/builder.sh"
. "$builders_dir_root/automake/builder.sh"
. "$builders_dir_root/libtool/builder.sh"
. "$builders_dir_root/util-macros/builder.sh"
. "$builders_dir_root/font-util/builder.sh"
. "$builders_dir_root/xtrans/builder.sh"
#===============================================================================
#The following are dependencies needed to configure/compile xalga
. "$builders_dir_root/pixman/builder.sh"
. "$builders_dir_root/xproto/builder.sh"
. "$builders_dir_root/xextproto/builder.sh"
. "$builders_dir_root/libpthread-stubs/builder.sh"
. "$builders_dir_root/libXau/builder.sh"
#the following is quite disgusting
. "$builders_dir_root/libxcb/builder.sh"
. "$builders_dir_root/kbproto/builder.sh"
. "$builders_dir_root/inputproto/builder.sh"
. "$builders_dir_root/libX11/builder.sh"
. "$builders_dir_root/fixesproto/builder.sh"
. "$builders_dir_root/damageproto/builder.sh"
. "$builders_dir_root/xcmiscproto/builder.sh"
. "$builders_dir_root/bigreqsproto/builder.sh"
. "$builders_dir_root/randrproto/builder.sh"
. "$builders_dir_root/renderproto/builder.sh"
. "$builders_dir_root/fontsproto/builder.sh"
. "$builders_dir_root/videoproto/builder.sh"
. "$builders_dir_root/compositeproto/builder.sh"
. "$builders_dir_root/recordproto/builder.sh"
. "$builders_dir_root/scrnsaverproto/builder.sh"
. "$builders_dir_root/resourceproto/builder.sh"
. "$builders_dir_root/xf86driproto/builder.sh"
. "$builders_dir_root/glproto/builder.sh"
. "$builders_dir_root/presentproto/builder.sh"
. "$builders_dir_root/xineramaproto/builder.sh"
. "$builders_dir_root/libxkbfile/builder.sh"
#-------------------------------------------------------------------------------
. "$builders_dir_root/libpng/builder.sh"
. "$builders_dir_root/freetype/builder.sh"
#-------------------------------------------------------------------------------
. "$builders_dir_root/libfontenc/builder.sh"
. "$builders_dir_root/libXfont/builder.sh"
#===============================================================================
. "$builders_dir_root/xalga/builder.sh"
#===============================================================================
#-------------------------------------------------------------------------------
#that one is one hell of a dirty kludge... I was amazed how bad it is. You 
#have to be sub-human to be able to do such work. Plz, leave the open source
#realm and go screw microsoft/apple/oracle software.
. "$builders_dir_root/intltool/builder.sh"
. "$builders_dir_root/gettext/builder.sh"
. "$builders_dir_root/xkeyboard-config/builder.sh"
. "$builders_dir_root/xkbcomp/builder.sh"
#-------------------------------------------------------------------------------
